package spinal_loongarch_core132

import spinal.core._
import spinal.lib._

class CoreCancel extends Bundle{
    val cancel:Bool = Bool()
    val target:UInt = LISA.GPR
    def @=:(pc:UInt):Unit = {
        when(cancel){
            pc := target
        }
    }
}
class BrBus extends CoreCancel{
    val idle:Bool = Bool()
}
